git pull
echo "========================git pull"
mvn clean package -P prod
echo "========================mvn clean package -P prod"
docker rmi -f stock
echo "========================docker rmi -f stock"
docker build -t stock .
echo "========================docker build -t stock ."
docker rm -f stock
echo "========================docker rm -f stock"
docker run -d -p 80:8080 --name stock --restart=always --link mysql:mysqlhost -v /logs/stock:/logs/stock stock
echo "========================docker run -d -p 80:8080 "